var userid = localStorage.getItem("userid");
console.log(userid);

var Json={
    userId:userid,
    pageIndex:1,
    pageSize:7
} 
ajax.post(ajax.myUrl+"project/findTask",Json,function(result){
    console.log(result)
    var data = result.dataset.taskList;
    // console.log(data)
    var tbody = document.querySelector("tbody");
    tbody.innerHTML=``
    if(data.length==0){
        tbody.innerHTML=``
    }
    for(var i=0;i<data.length;i++){
        var newtr = document.createElement("tr");
        newtr.innerHTML=`
        <td>${data[i].taskId}</td>
            <td>${data[i].taskName}</td>
            <td>${data[i].taskLeader}</td>
            <td>${data[i].workingHours}</td>
            <td>${data[i].startDate}</td>
            <td>${data[i].endDate}</td>
            <td>${data[i].progress+"%"}</td>
         `;
         tbody.appendChild(newtr);
        }
           
        
     
    })
